/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2022-09-20
 * Time: 17:09
 */
public class Test_SingleLinkedLIst {

    public static void main(String[] args) {

        SingleLinkedList singleLinkedList = new SingleLinkedList();

        //singleLinkedList.creatList();
/*        singleLinkedList.display();
        System.out.println("==============");
        System.out.println(singleLinkedList.size());

        System.out.println(singleLinkedList.contains(34));*/

        singleLinkedList.addLast(12);
        singleLinkedList.addLast(23);
        singleLinkedList.addLast(34);
        singleLinkedList.addLast(45);
        singleLinkedList.addLast(56);
        singleLinkedList.addIndex(1,99);
        singleLinkedList.display();
        //System.out.println(singleLinkedList.size());
        singleLinkedList.remove(88);
        singleLinkedList.display();
        System.out.println("=========");
        singleLinkedList.clear();
        singleLinkedList.display();

    }
}
